package com.wzg.security;

import org.junit.Test;

/**
 * @author henryGui
 * @version V1.0
 * @Title: Base64Test
 * @Package com.wzg.security
 * @Description: TODO
 * @date 2018-07-09 下午3:45
 */

public class Base64Test
{
    HQBase64 base64 = HQBase64.getInstance();

    @Test
    public void encode()
    {
        byte[] data = "吴峥桂".getBytes();
        String result = base64.encodeToString(data);
        System.err.println(result);
        System.err.println(new String(base64.decodeString(result)));
    }
}